// LedColor.h

#pragma once

#if defined(ARDUINO) && ARDUINO >= 100
	#include "arduino.h"
#else
	#include "WProgram.h"
#endif

class LedColor
{
private:
	byte red;
	byte green;
	byte blue;
public:
	LedColor(byte red, byte green, byte blue)
	{
		this->red = red;
		this->green = green;
		this->blue = blue;
	}
	void Lighten(uint8_t pinRed, uint8_t pinGreen, uint8_t pinBlue)
	{
		analogWrite(pinRed, this->red);
		analogWrite(pinGreen, this->green);
		analogWrite(pinBlue, this->blue);
	}
};